package com.bl.weilan.dao.repository;

import com.bl.weilan.dao.model.InstitutionEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface InstitutionRepository extends JpaRepository<InstitutionEntity, String> {
    Page<InstitutionEntity>  findByNameLike(String name, Pageable pageable);

    List<InstitutionEntity>  findByNameLike(String name);

    InstitutionEntity findByName(String name);

    InstitutionEntity findByFullName(String name);
}
